import request from '@/utils/request'

// 查询收藏管理列表
export function listCollections(query) {
  return request({
    url: '/manage/collections/list',
    method: 'get',
    params: query
  })
}

// 查询收藏管理详细
export function getCollections(collectionId) {
  return request({
    url: '/manage/collections/' + collectionId,
    method: 'get'
  })
}

// 新增收藏管理
export function addCollections(data) {
  return request({
    url: '/manage/collections',
    method: 'post',
    data: data
  })
}

// 修改收藏管理
export function updateCollections(data) {
  return request({
    url: '/manage/collections',
    method: 'put',
    data: data
  })
}

// 删除收藏管理
export function delCollections(collectionId) {
  return request({
    url: '/manage/collections/' + collectionId,
    method: 'delete'
  })
}
